package com.xbongbong.pro.domain.dao;

import com.xbongbong.pro.domain.entity.AiAssistantEntity;
import com.xbongbong.pro.domain.entity.HomePageManageEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @ClassName HomePageManageDao
 * @Description 首页管理
 * @Author mengna.Deng
 * @Date 2021/11/1 13:52
 * @Version 1.0
 */
@Repository
@Mapper
public interface HomePageManageDao {
    Integer insert(HomePageManageEntity homePageManageEntity);

    Integer update(HomePageManageEntity homePageManageEntity);

    void insertBatch(List<HomePageManageEntity> entityList);

    Integer deleteByKey(@Param("key") Long key, @Param("corpid") String corpid);

    HomePageManageEntity getByKey(@Param("key") Long key, @Param("corpid") String corpid);

    List<HomePageManageEntity> findEntitys(@Param("param") Map<String, Object> param);

    Integer getEntitysCount(@Param("param") Map<String, Object> param);

    /**
     * 批量更新（enable，updateTime，executor）
     *
     * @param entityList 实体列表
     * @param corpid 公司id
     * @throws
     * @return
     * @author hongxiao
     * @date 2019-12-06 11:01
     * @since
     * @version
     */
    void updateBatch(@Param("list") List<HomePageManageEntity> entityList, @Param("corpid") String corpid);
}
